package colbert.content.extendsDemo3;

public class Teacher extends People{
    private String skill;
    public Teacher(){
        this("我是谁", "我是老师");
}
    public Teacher(String name,String skill){
        super(name);
        this.skill = skill;
    }
    public String getSkill() {
        return skill;
    }
    // 重写toString方法，输出teacher的信息
    @Override
    public String toString() {
        return "Teacher [skill=" + skill + ", name=" + getName() + "]";
    }

}
